﻿// owner 蒋家伟

#include "ElementChangedEventArgs.h"

// jsdk
#include "Dbg_Warn_Define.h"
#include "IElement.h"
#include "ElementId.h"

using namespace jsdk;

jsdk::ElementChangedEventArgs::ElementChangedEventArgs(const IDocument* pDoc, ChangedStatusUMap&& changedMaps):
    m_wpDoc(pDoc),
    m_changedMaps(std::move(changedMaps))
{
}

const ChangedStatusUMap& jsdk::ElementChangedEventArgs::getChangedMaps() const
{
    return m_changedMaps;
}

const jsdk::IDocument* jsdk::ElementChangedEventArgs::getDocument() const
{
    return m_wpDoc.get();
}
